{extend name="base" /}
{block name="main"}
<div class="col-md-10">
  <!-- 面包屑导航栏 -->
  <ol class="breadcrumb" style="margin-top: 20px;">
    <li class="breadcrumb-item"><a href="index.html">首页</a></li>
    <li class="breadcrumb-item active">用户管理</li>
  </ol>
  <!-- 面包屑导航栏 end -->
  <div class="card">
    <div class="card-body">
      <!-- <p class="text-right">
        <a href="addyh.html">
          <button type="button" class="btn btn-success">添加用户</button>
        </a>
      </p> -->
      <table class="table">
        <thead>
          <tr>
            <th>姓名</th>
            <th>电话</th>
            <th>学校</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
          {volist name="res" id="vo"}
          <tr>
            <td>{$vo.user_name}</td>
            <td>{$vo.user_phone}</td>
            <td>{$vo.user_school}</td>
            <td>
              {eq name="vo.status" value="0"}
              <a href="{:url('user/dong',['user_id'=>$vo.user_id])}"><button type="button" class="btn btn-danger ">冻结</button></a>
                  {else/}
                  <a href="{:url('user/qu',['user_id'=>$vo.user_id])}"><button type="button" class="btn btn-primary ">解冻</button></a>
                  {/eq}
              
              
            </td>
          </tr>
          {/volist}
        </tbody>
      </table>
    </div>
  </div>
</div>
{/block}